﻿namespace MicroCloud.Identity.Entities
{
    /// <summary>
    /// 实体类：用户组织机构信息
    /// </summary>
    [Description("用户组织机构信息")]
    [ValueGenerate(ValueGenerateRule.Never, ValueGenerateMode.Snowflake)]
    [Table(nameof(UserOrganization), Schema = TableSchemaConstants.Identity)]
    public class UserOrganization : UserOrganizationBase<long, long, long>
    {
        #region "属性"
        // 导航属性
        #region "获取或设置 关联用户信息"
        /// <summary>
        /// 获取或设置 关联用户信息
        /// </summary>
        [JsonIgnore]
        public virtual User User { get; set; }
        #endregion
        #region "获取或设置 关联组织机构信息"
        /// <summary>
        /// 获取或设置 关联组织机构信息
        /// </summary>
        [JsonIgnore]
        public virtual Organization Organization { get; set; }
        #endregion

        #endregion

    }

}
